<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>vue实例</title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="root" @click="handleClick">{{message}}</div>
	</body>
	<script>
		var vm = new Vue({
			el: '#root',
			data: {
				message: 'hello world'
			},
			methods: {
				handleClick: function() {
					alert('hello');
				}
			}
		})
	</script>
</html>
